package com.example.usb;

import android.app.Application;
import android.content.Context;

import com.example.usb.ai.AiLibManager;
import com.example.usb.dao.DaoManager;

/**
 * Created Date 2019/2/20
 *
 * @author liangkun
 * description：
 */
public class MyApplication extends Application {
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        //数据库初始化
        DaoManager.getInstance(this);
        //初始化人脸库
        AiLibManager.initAipFace();
    }

    public static Context getContext() {
        return context;
    }
}
